package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderCoupon;
import com.nbsaas.boot.order.api.domain.response.OrderCouponResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 订单优惠券-实体对象转化成响应对象
*/

public class OrderCouponResponseConvert  implements Converter<OrderCouponResponse,OrderCoupon> {

    @Override
    public OrderCouponResponse convert(OrderCoupon source) {
        OrderCouponResponse  result = new  OrderCouponResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

